<?php

namespace app\models;

/**
 * Class Article
 *
 */
class User extends BaseModel
{
	protected $_primaryKey = 'userId';
	/**
     * @inheritdoc
     */
    public static function tableName()
    {
        return "{{%user}}";
    }
    /**
     * @inheritdoc
     * 场景
     */
    public function scenarios()
    {
        $scenarios = parent::scenarios();
        
        return $scenarios;
        
    }
    /**
     * 验证规则
     * @return array
     */
    public function rules()
    {
        return [
            
            [['userName','pwdToken','phone','type','channel','statusIs'], 'safe'],
            
        ];
    }

    /**
     * 字段标签名
     * @return array
     */
    public function attributeLabels()
    {
        return [
            'userName'   => '用户名',
            'phone'   => '手机号码',
            'type' => '类型',
            'channel' => '渠道',
            'statusIs' => '状态',
        ];
    }
    
}